#flash= flash[:error]
#content-title
  %h1 Edit Series
  %p Go ahead and edit the series details below
#event-listings
  .listing
    - form_for :series, @series, :url => one_series_url, :html => {:method => 'put'} do |form|    
      %table
        %tr
          %th Name:
          %td= form.text_field :name
          %td= error_message_on :series, :name
        %tr
          %th Place:
          %td= form.text_field :place
          %td= error_message_on :series, :place
        %tr
          %th Starting Time:
          %td= form.datetime_select("start_time",:default => 1.hour.from_now)
          %td= error_message_on :series, :start_time    
        %tr
          %td Optional Details:
        %tr
          %th Ending Time 
          %td= form.datetime_select("end_time",:default => 2.hours.from_now)
        %tr
          %td Cost:
          %td= form.text_field :cost
          %td= error_message_on :series, :cost
        %tr 
          %th Description:
          %td= form.text_area :description
          %td= error_message_on :series, :description
      = submit_tag 'Update'
   
      
      
      
          
